package com.lanfan.controller.web;

import com.lanfan.entity.Plan;
import com.lanfan.entity.ResponseResult;
import com.lanfan.entity.Todaymenu;
import com.lanfan.service.PlanService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController("webPlanController")
@RequestMapping("/web/Plan")
public class PlanController {
    @Resource
    private PlanService planService;
    @GetMapping("/getPlanList")
    public ResponseResult getPlanList(){
        ResponseResult responseResult=new ResponseResult<>();
        List<Plan> planList=planService.getPlanList();
        responseResult.setDate(planList);
        return responseResult;
    }
}
